﻿using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Drawing;
using System.Linq;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;
using BookvarSettings = BookvarWpf.Properties.Settings;

namespace Bookvar.UpdateProcessWorkflow
{
	public sealed partial class UpdateProcess : StateMachineWorkflowActivity
	{

		#region Conditions
		public static readonly DependencyProperty CheckingNecessaryUpdateConditionEvent = DependencyProperty.Register("CheckingNecessaryUpdateCondition", typeof(System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>), typeof(Bookvar.UpdateProcessWorkflow.UpdateProcess));
		public static readonly DependencyProperty CheckingForAvailableUpdatesConditionEvent = DependencyProperty.Register("CheckingForAvailableUpdatesCondition", typeof(System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>), typeof(Bookvar.UpdateProcessWorkflow.UpdateProcess));
		public static readonly DependencyProperty UpdatesAvailableForDownloadingConditionEvent = DependencyProperty.Register("UpdatesAvailableForDownloadingCondition", typeof(System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>), typeof(Bookvar.UpdateProcessWorkflow.UpdateProcess));
		public static readonly DependencyProperty InstallUpdatesConditionEvent = DependencyProperty.Register("InstallUpdatesCondition", typeof(System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>), typeof(Bookvar.UpdateProcessWorkflow.UpdateProcess));

		[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)]
		[BrowsableAttribute(true)]
		[CategoryAttribute("Handlers")]
		public event EventHandler<ConditionalEventArgs> CheckingNecessaryUpdateCondition
		{
			add
			{
				base.AddHandler(CheckingNecessaryUpdateConditionEvent, value);
			}
			remove
			{
				base.RemoveHandler(CheckingNecessaryUpdateConditionEvent, value);
			}
		}


		[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)]
		[BrowsableAttribute(true)]
		[CategoryAttribute("Handlers")]
		public event EventHandler<ConditionalEventArgs> CheckingForAvailableUpdatesCondition
		{
			add
			{
				base.AddHandler(CheckingForAvailableUpdatesConditionEvent, value);
			}
			remove
			{
				base.RemoveHandler(CheckingForAvailableUpdatesConditionEvent, value);
			}
		}


		[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)]
		[BrowsableAttribute(true)]
		[CategoryAttribute("Handlers")]
		public event EventHandler<ConditionalEventArgs> UpdatesAvailableForDownloadingCondition
		{
			add
			{
				base.AddHandler(UpdatesAvailableForDownloadingConditionEvent, value);
			}
			remove
			{
				base.RemoveHandler(UpdatesAvailableForDownloadingConditionEvent, value);
			}
		}


		[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)]
		[BrowsableAttribute(true)]
		[CategoryAttribute("Handlers")]
		public event EventHandler<ConditionalEventArgs> InstallUpdatesCondition
		{
			add
			{
				base.AddHandler(InstallUpdatesConditionEvent, value);
			}
			remove
			{
				base.RemoveHandler(InstallUpdatesConditionEvent, value);
			}
		}

		#endregion


		public UpdateProcess()
		{
			InitializeComponent();

		}

		private void codeActivity1_ExecuteCode(object sender, EventArgs e)
		{

		}




	}

}
